#ifndef TZFE_H
#define TZFE_H

#include <QMainWindow>
#include<QPainter>
#include<QPushButton>
#include<QTime>
#include<QKeyEvent>
#include<QDebug>
#include<QMessagebox>
#include<QSoundEffect>

namespace Ui {
class tzfe;
}

class tzfe : public QMainWindow
{
    Q_OBJECT

public:
    explicit tzfe(QWidget *parent = 0);
    ~tzfe();
void paintEvent(QPaintEvent *);
void keyPressEvent(QKeyEvent *event);
int s[4][4];
QPushButton *button;
int score=0;
bool state;//判断状态
void Pressup();//操作函数
void Pressdown();
void Presslift();
void Pressright();

void myRand();
struct N{
    int i;
    int j;

};

public slots:
void slotStart();

private:
    Ui::tzfe *ui;
};

#endif // TZFE_H
